<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title><%= @site.title %>: <%= controller.action_name %></title>
    <%= stylesheet_link_tag "site" %>
    <% if @site.style %>
    <%= stylesheet_link_tag "style/#{@site.style.filename}" %>
    <% end %>  
    <% if @include_rte %>
    <%= javascript_include_tag "tiny_mce/tiny_mce" %>
    <% end %>   
</head>
<body>
<div id="shell">
    <div id="header">
        <% if !@site.home_site? %>
            <div id="home"><%= link_to Site.home_site.title, :controller => 'site', :action => 'site_show' %></div>
        <% end %>
        <%= render :partial => "site/partials/welcome" %>
    </div>
    <div id="body_wrapper">
        <div id="body">
            <%= render :partial => "site/partials/logo" %>
            <%= render :partial => "site/partials/nav" %>
            <div id="content"><%= yield %></div>
        </div>
    </div>
    <div id="footer">
        <div id="site_footer"><%= @site.footer %></div>
        <%= render :partial => "site/partials/actions" %>
    </div>
</div>
</body>
</html>
